<let/tagName = "div"/>

<${tagName}>
  <counter/>
</>

<button#changeTag onClick() { tagName = tagName === "span" ? "div" : "span" } />